package graph;
public class Edge {
	private Node beginning;
	private Node end;
	private int cost;

	public Edge(Node beginning, Node end, int cost) {
		this.beginning = beginning;
		this.end = end;
		this.cost = cost;
	}

	public Node getEnd() {
		return end;
	}

	public int getCost() {
		return cost;
	}

	public Node getBeginning() {
		return beginning;
	}
}
